package tetris;

import static org.junit.Assert.*;

import org.junit.Test;

public class TableTest {

	@Test
	public void testTable() {
		
		Table table = new Table(null);
		int h = table.BoardHeight;
		int w = table.BoardWidth;
		int n = table.numLinesRemoved;
		int k = table.curX;
		int l = table.curY;
		
		assertTrue(h==22);
		assertTrue(w==10);
		assertFalse(table.isFallingFinished);
		assertFalse(table.isPaused);
		assertFalse(table.isStarted);
		
		assertTrue(n==0 && k == 0 && l ==0);
		
		assertTrue(table.isFocusable());
		
		
		//fail("Not yet implemented");
		
	}

	@Test
	public void testActionPerformed() {
		fail("Not yet implemented");
	}

	@Test
	public void testSquareWidth() {
		fail("Not yet implemented");
	}

	@Test
	public void testSquareHeight() {
		fail("Not yet implemented");
	}

	@Test
	public void testShapeAt() {
		fail("Not yet implemented");
	}

	@Test
	public void testStart() {
	
		Table table = new Table(null);
		int n = table.numLinesRemoved;
		
		assertFalse(table.isFallingFinished);
		assertFalse(table.isStarted);
		assertTrue(n==0);
		//	fail("Not yet implemented");
	}

	@Test
	public void testPaintGraphics() {
		fail("Not yet implemented");
	}

}
